package com.richapp.launcher.net.camera;

import com.jack.netty.udp.server.AnyanVideoUdpListener;
import com.jack.util.date.DateUtil;
import com.richapp.launcher.busevent.EventCameraMove;

import de.greenrobot.event.EventBus;

/**
 * Created by jack on 16/3/4.
 */
public class AnyanCameraUdpListener extends AnyanVideoUdpListener {

    @Override
    public void videoMove(String cameraId) {
        EventCameraMove ecm = new EventCameraMove();
        ecm.setCameraId(cameraId);
        ecm.setMoveTime(DateUtil.getDateLong());
        EventBus.getDefault().post(ecm);
    }
}
